package com.itheima.sh.a_break_01.homework;

public class Test02 {
    public static void main(String[] args) {
        //定义数组
        int [] arr={35,28,44,65,23};
        //遍历数组
        for (int i = 0; i < arr.length; i++) {
            if(arr[i]%2==1&&i%2==1){
                System.out.println("索引"+i+"对应的元素："+arr[i]);
            }
        }
    }

}
